package com.atguigu.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.atguigu.service.ActorService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/actor")
public class ActorController {
    @Reference
    private ActorService actorService;

    @RequestMapping("/info")
    @ResponseBody
    public String getActorInfo(String name){
        return actorService.getActorInfo(name);
    }
}
